﻿<UserControl x:Class="Boggle.Net.Views.StatisticsView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        >
    
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="..\Styles\Styles.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
        <StackPanel.Resources>
            <Style TargetType="{x:Type TextBlock}">
                <Setter Property="Foreground" Value="#80F4F4F4" />
                <Setter Property="Padding" Value="8,0,0,0" />
            </Style>
        </StackPanel.Resources>
        <TextBlock Text="Words: ">
            <Run Text="{Binding TotalWords, Mode=OneWay}" FontWeight="Bold" />
        </TextBlock>
        <TextBlock Text="Distinct: ">
            <Run Text="{Binding TotalDistinctWords, Mode=OneWay}" FontWeight="Bold" />
        </TextBlock>
        <TextBlock Text="Max. Score: ">
            <Run Text="{Binding MaximumScore, Mode=OneWay}" FontWeight="Bold" />
        </TextBlock>
        <TextBlock Text="Search Time: ">
            <Run Text="{Binding SearchTime, Mode=OneWay, StringFormat=mm\\:ss\\.ff}" />
        </TextBlock>
    </StackPanel>
</UserControl>
